Optimal. Leaf size=72 \[ \frac {(b c-a d) \tanh ^{-1}\left (\frac {\sqrt {d} \sqrt {a+b x}}{\sqrt {b} \sqrt {c+d x}}\right )}{b^{3/2} \sqrt {d}}+\frac {\sqrt {a+b x} \sqrt {c+d x}}{b} \]
________________________________________________________________________________________
Rubi [A] time = 0.04, antiderivative size = 72, normalized size of antiderivative = 1.00, number of steps used = 4, number of rules used = 4, integrand size = 19, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.210, Rules used = {50, 63, 217, 206} \begin {gather*} \frac {(b c-a d) \tanh ^{-1}\left (\frac {\sqrt {d} \sqrt {a+b x}}{\sqrt {b} \sqrt {c+d x}}\right )}{b^{3/2} \sqrt {d}}+\frac {\sqrt {a+b x} \sqrt {c+d x}}{b} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 50
Rule 63
Rule 206
Rule 217
Rubi steps
\begin {align*} \int \frac {\sqrt {c+d x}}{\sqrt {a+b x}} \, dx &=\frac {\sqrt {a+b x} \sqrt {c+d x}}{b}+\frac {(b c-a d) \int \frac {1}{\sqrt {a+b x} \sqrt {c+d x}} \, dx}{2 b}\\ &=\frac {\sqrt {a+b x} \sqrt {c+d x}}{b}+\frac {(b c-a d) \operatorname {Subst}\left (\int \frac {1}{\sqrt {c-\frac {a d}{b}+\frac {d x^2}{b}}} \, dx,x,\sqrt {a+b x}\right )}{b^2}\\ &=\frac {\sqrt {a+b x} \sqrt {c+d x}}{b}+\frac {(b c-a d) \operatorname {Subst}\left (\int \frac {1}{1-\frac {d x^2}{b}} \, dx,x,\frac {\sqrt {a+b x}}{\sqrt {c+d x}}\right )}{b^2}\\ &=\frac {\sqrt {a+b x} \sqrt {c+d x}}{b}+\frac {(b c-a d) \tanh ^{-1}\left (\frac {\sqrt {d} \sqrt {a+b x}}{\sqrt {b} \sqrt {c+d x}}\right )}{b^{3/2} \sqrt {d}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.10, size = 117, normalized size = 1.62 \begin {gather*} \frac {\sqrt {c+d x} \left (\sqrt {d} \sqrt {a+b x} \sqrt {\frac {b (c+d x)}{b c-a d}}+\sqrt {b c-a d} \sinh ^{-1}\left (\frac {\sqrt {d} \sqrt {a+b x}}{\sqrt {b c-a d}}\right )\right )}{b \sqrt {d} \sqrt {\frac {b (c+d x)}{b c-a d}}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
IntegrateAlgebraic [A] time = 0.00, size = 104, normalized size = 1.44 \begin {gather*} \frac {\sqrt {c+d x} \sqrt {a+\frac {b (c+d x)}{d}-\frac {b c}{d}}}{b}-\frac {\sqrt {\frac {b}{d}} (b c-a d) \log \left (\sqrt {a+\frac {b (c+d x)}{d}-\frac {b c}{d}}-\sqrt {\frac {b}{d}} \sqrt {c+d x}\right )}{b^2} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 1.35, size = 236, normalized size = 3.28 \begin {gather*} \left [\frac {4 \, \sqrt {b x + a} \sqrt {d x + c} b d - {\left (b c - a d\right )} \sqrt {b d} \log \left (8 \, b^{2} d^{2} x^{2} + b^{2} c^{2} + 6 \, a b c d + a^{2} d^{2} - 4 \, {\left (2 \, b d x + b c + a d\right )} \sqrt {b d} \sqrt {b x + a} \sqrt {d x + c} + 8 \, {\left (b^{2} c d + a b d^{2}\right )} x\right )}{4 \, b^{2} d}, \frac {2 \, \sqrt {b x + a} \sqrt {d x + c} b d - {\left (b c - a d\right )} \sqrt {-b d} \arctan \left (\frac {{\left (2 \, b d x + b c + a d\right )} \sqrt {-b d} \sqrt {b x + a} \sqrt {d x + c}}{2 \, {\left (b^{2} d^{2} x^{2} + a b c d + {\left (b^{2} c d + a b d^{2}\right )} x\right )}}\right )}{2 \, b^{2} d}\right ] \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [A] time = 0.92, size = 93, normalized size = 1.29 \begin {gather*} -\frac {{\left (\frac {{\left (b^{2} c - a b d\right )} \log \left ({\left | -\sqrt {b d} \sqrt {b x + a} + \sqrt {b^{2} c + {\left (b x + a\right )} b d - a b d} \right |}\right )}{\sqrt {b d}} - \sqrt {b^{2} c + {\left (b x + a\right )} b d - a b d} \sqrt {b x + a}\right )} {\left | b \right |}}{b^{3}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.01, size = 107, normalized size = 1.49 \begin {gather*} -\frac {\left (a d -b c \right ) \sqrt {\left (b x +a \right ) \left (d x +c \right )}\, \ln \left (\frac {b d x +\frac {1}{2} a d +\frac {1}{2} b c}{\sqrt {b d}}+\sqrt {b d \,x^{2}+a c +\left (a d +b c \right ) x}\right )}{2 \sqrt {d x +c}\, \sqrt {b x +a}\, \sqrt {b d}\, b}+\frac {\sqrt {b x +a}\, \sqrt {d x +c}}{b} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [F(-2)] time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Exception raised: ValueError} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 4.01, size = 260, normalized size = 3.61 \begin {gather*} \frac {\frac {\left (2\,a\,d+2\,b\,c\right )\,\left (\sqrt {a+b\,x}-\sqrt {a}\right )}{d^2\,\left (\sqrt {c+d\,x}-\sqrt {c}\right )}+\frac {\left (2\,a\,d+2\,b\,c\right )\,{\left (\sqrt {a+b\,x}-\sqrt {a}\right )}^3}{b\,d\,{\left (\sqrt {c+d\,x}-\sqrt {c}\right )}^3}-\frac {8\,\sqrt {a}\,\sqrt {c}\,{\left (\sqrt {a+b\,x}-\sqrt {a}\right )}^2}{d\,{\left (\sqrt {c+d\,x}-\sqrt {c}\right )}^2}}{\frac {{\left (\sqrt {a+b\,x}-\sqrt {a}\right )}^4}{{\left (\sqrt {c+d\,x}-\sqrt {c}\right )}^4}+\frac {b^2}{d^2}-\frac {2\,b\,{\left (\sqrt {a+b\,x}-\sqrt {a}\right )}^2}{d\,{\left (\sqrt {c+d\,x}-\sqrt {c}\right )}^2}}-\frac {2\,\mathrm {atanh}\left (\frac {\sqrt {d}\,\left (\sqrt {a+b\,x}-\sqrt {a}\right )}{\sqrt {b}\,\left (\sqrt {c+d\,x}-\sqrt {c}\right )}\right )\,\left (a\,d-b\,c\right )}{b^{3/2}\,\sqrt {d}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [F] time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {\sqrt {c + d x}}{\sqrt {a + b x}}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________